package com.eshop.modules.quartz.task;

import com.eshop.modules.monitor.service.VisitsService;
import org.springframework.stereotype.Component;

@Component
public class VisitsTask
{
    private final VisitsService visitsService;
    
    public VisitsTask(final VisitsService visitsService) {
        this.visitsService = visitsService;
    }
    
    public void run() {
        this.visitsService.save();
    }
}
